import { http } from '@/utils/request.js'

// 查看选课列表
export const TaskListService = (data) => {
	return http({
		url: '/task/list',
		method: 'GET',
		data: data
	})
}

// 获取选课申请详情
export const taskDetailService = (taskId) => {
	return http({
		url: '/task/detail',
		method: 'GET',
		data: {
			taskId
		}
	})
}

// 获取选课申请对应的进度条
export const taskStepsService = (taskId) => {
	return http({
		url: '/task/steps',
		method: 'GET',
		data: {
			taskId
		}
	})
}

// 导师审批选课申请
export const approvalTaskService = (data) => {
	return http({
		url: '/task/tch',
		method: 'PUT',
		data: data
	})
}